package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SpokenUser;
import com.ruoyi.system.domain.SpokenUserCourseTime;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpokenUserMapper {

    /**
     * 添加用户
     * @param user
     * @return
     */
    public int insert(SpokenUser user);

    /**
     * 查询用户
     */
    public SpokenUser selectById(Long userId);

    /**
     * 根据openid查询用户
     */
    public SpokenUser selectByOpenid(String openid);

    /**
     * 用户列表
     */
    public List<SpokenUser> selectList(SpokenUser user);

    /**
     * 编辑用户
     */
    public int update(SpokenUser user);

    /**
     * 查询用户数量
     */
    public Integer selectUserCount(@Param("startDate") String startDate, @Param("endDate") String endDate);


}
